package service;

import dao.NoticeInfoMapper;
import dao.PubInfoMapper;

import java.sql.SQLException;

/**
 * @author 李夏
 * @version 1.0
 */
public class PubInfoService {
    public static Integer getPubOneBuild(Integer buildId) throws SQLException {
        return PubInfoMapper.getPubOneBuild(buildId);

    }

    public static Integer queryPubAllCount() throws SQLException {
        return PubInfoMapper.queryPubAllCount();

    }

    public static Integer getPubOneBuildName(Integer buildId, String publicName) throws SQLException {
        return PubInfoMapper.getPubOneBuildName(buildId,publicName);

    }

    public static Integer getPublicAllName(String publicName) throws SQLException {
        return PubInfoMapper.getPublicAllName(publicName);

    }
}
